<?php

require_once 'init.php';
require_once 'cf/page.inc';

$page = new Page(ARTICLES_PAGE_ID);
$smarty->assign('page',$page);

$smarty->assign(
	'articles',
	query2arrays("
		SELECT id,title,dt,summary,source,image
		FROM articles
		ORDER BY dt DESC
	")
);

show('articles',$page->title(),array($page->menuName()=>'articles.php'));
?>